﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Crossroad.Core.Configs
{
    /// <summary>
    /// OAuth权限配置参数
    /// </summary>
    [Serializable]
    public class OAuthOption
    {
        /// <summary>
        /// 默认应用id
        /// </summary>
        public string DefAppId { set; get; }

        /// <summary>
        /// AccessToken有效期（单位：小时）
        /// </summary>
        public int AccessTokenExpires { get; set; }

        /// <summary>
        /// RefreshToken有效期（单位：小时）
        /// </summary>
        public int RefreshTokenExpires { get; set; }

        /// <summary>
        /// 客户端id
        /// </summary>
        public string ClientId { set; get; }

        /// <summary>
        /// 客户端密钥
        /// </summary>
        public string ClientSecret { set; get; }


    }
}
